//
//  HLVideoOptionRequest.m
//  YueYue
//
//  Created by hulu001 on 2024/1/8.
//

#import "HLVideoOptionRequest.h"

@implementation HLVideoOptionRequest
{
    NSDictionary *_params;
    HLVideoOptionType _type;
}

- (id)initWithType:(HLVideoOptionType)type params:(NSDictionary *)params
{
    self = [super init];
    
    if (self) {
        _type = type;
        _params = params;
    }
    
    return self;
}

- (NSString *)requestUrl
{
    switch (_type) {
        case HLVideoOptionTypeDelete:
            return @"/short/video/delete";
            break;
        case HLVideoOptionTypeCommentDelete:
            return @"/short/video/delete_comment";
            break;
        case HLVideoOptionTypeLike:
            return @"/short/video/like_unlike";
            break;
        case HLVideoOptionTypeComment:
            return @"/short/video/comment";
            break;
        case HLVideoOptionTypeSave:
            return @"/upload/link/short/video";
            break;
        case HLVideoOptionTypeVideoAnalysis:
            return @"/short/video/analysis";
            break;
    }
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPOST;
}

- (id)requestArgument
{
    return _params;
}

@end
